Find<TTarget>(Predicate<TTarget>) Method
Searches for a that matches the specified type TTarget and matches the conditions defined by the specified predicate, and returns the first occurrence within the entire collection.
Parameters
- match
- The Predicate delegate that defines the conditions of the to search for.
Type Parameters
- TTarget
Return Value
The first that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type TTarget.